package _14增强for循环;

import java.util.ArrayList;
import java.util.Collection;

public class DemoForeach {
    public static void main(String[] args) {
        Collection<String> collection = new ArrayList<>();


        //集合添加元素 add
        collection.add("java");
        collection.add("python");
        collection.add("c++");


        for (String s:
             collection) {
            System.out.println(s);
        }
    }
}
